i = 1
sum = 0
while i <= 100:
    if i % 2==1:
        sum = sum + i
    i+=1

print("1~100的累积和为:%d" % sum)
